c语言编程中 报错"stray '\161'in progtam" 是什么意思

来源:百度知道 编辑:UC知道 时间:2024/09/13 12:45:43

  1. 如果VC编译器出现如此错误提示"stray '\161'in progtam",说明你用了全角符号的空格。

    直接从网上拷贝代码贴到Dev C++中会经常遇到 stray '\161' in program 错误,其实问题出在代码中掺入了一些不合法的空格(全角空格),把每行代码后的空格删掉即OK了!

  2. C语言错误对照表:

    1. Ambiguous operators need parentheses — 不明确的运算需要用括号括起
    2. Ambiguous symbol 'xxx' — 不明确的符号
    3. Argument list syntax error — 参数表语法错误
    4. Array bounds missing — 丢失数组界限符
    5. Array size toolarge — 数组尺寸太大
    6. Bad character in paramenters — 参数中有不适当的字符
    7. Bad file name format in include directive — 包含命令中文件名格式不正确
    8. Bad ifdef directive synatax — 编译预处理ifdef有语法错
    9. Bad undef directive syntax — 编译预处理undef有语法错
    10. Bit field too large — 位字段太长
    11. Call of non-function — 调用未定义的函数
    12. Call to function with no prototype — 调用函数时没有函数的说明
    13. Cannot modify a const object — 不允许修改常量对象
    14. Case outside of switch — 漏掉了case 语句
    15. Case syntax error — Case 语法错误
    16. Code has no effect — 代码不可能执行到